package com.course.server.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.course.server.domain.Test;
import com.course.server.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestService {

    @Autowired
    TestMapper testMapper;

    public List<Test> list(){
        return testMapper.selectList(new QueryWrapper<Test>().eq("id","11").orderByDesc("id"));
    }

}
